package com.ruoyi.violate.domain;

import java.util.Date;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 business_counselor
 * 
 * @author ruoyi
 * @date 2023-06-05
 */
@Data
@ExcelIgnoreUnannotated
public class BusinessCounselor extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 店铺名 */
    @ExcelProperty(value = "店铺名", index = 0)
    @Excel(name = "店铺名")
    private String shopName;

    /** 统计日期 */
    @ExcelProperty(value = "统计日期", index = 1)
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "统计日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date statisticsDate;

    /** 商品id */
    @ExcelProperty(value = "商品ID", index = 2)
    @Excel(name = "商品ID")
    private String productId;

    /** 商品名称 */
    @ExcelProperty(value = "商品名称", index = 3)
    @Excel(name = "商品名称")
    private String productName;

    /** 下单件数 */
    @ExcelProperty(value = "下单件数", index = 4)
    @Excel(name = "下单件数")
    private String productVisitors;

    /** 商品加购数 */
    @ExcelProperty(value = "商品加购件数", index = 5)
    @Excel(name = "商品加购件数")
    private String productAdds;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("shopName", getShopName())
            .append("statisticsDate", getStatisticsDate())
            .append("productId", getProductId())
            .append("productName", getProductName())
            .append("productVisitors", getProductVisitors())
            .append("productAdds", getProductAdds())
            .toString();
    }
}
